package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * sewage_device_storage_type
 */
@Data
@ApiModel(value = "DevStorageTypePO", description = "资产入库")
public class DevStorageTypePO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "物料类型id", required = true)
    private Long materielId;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "设备品类id", required = true)
    private Long categoryId;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "生产厂家 (1,2,3,4)", required = true)
    private String factoryIds;

    @ApiModelProperty(value = "采购时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date purchaseTime;

    @ApiModelProperty(value = "设备规格", required = true)
    private String dossierSpec;

    @ApiModelProperty(value = "设备照片", required = true)
    private String attach;

    @ApiModelProperty(value = "电子手册", required = true)
    private String electronicManual;

    @ApiModelProperty(value = "入库时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAt;

    @ApiModelProperty(value = "更新时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateAt;

    @NotNull
    @ApiModelProperty(value = "删除标记 false:正常 true:删除", required = true)
    private Boolean deleteFlag;

    @ApiModelProperty(value = "PLC逻辑点位(0 - 否 1 - 是) 不需要传")
    private Integer plcLogicPoint;
}